<div class="pageTag">
<ul>
<li class="left">
<{if $_page <= 1}>
	上一页
<{else}>
	<a href="default.php?page=<{$_page-1}><{$_qs}>">上一页</a>
<{/if}>
</li>
<li>
<{foreach from=$_pagearr item=row}>
	<{if $_page == $row}>
	<{$row}>
	<{else}>
	<a href="default.php?page=<{$row}><{$_qs}>"><{$row}></a>
	<{/if}>
<{/foreach}>
</li>
<li class="right">
<{if $_page == 1 and $_db_len == $_pagecount}>下一页
	<!--<a href="default.php?page=<{$_page+1}><{$_qs}>">下一页</a><{$_db_len}>/<{$_pagecount}>-->
<{else}>
	<{if $_db_len <= $_pagecount}>
	下一页
	<{else}>
		<{if ($_page-1) == 0}>
			<a href="default.php?page=<{$_page+1}><{$_qs}>">下一页</a>
		<{else}>
			<{if ($_db_len % ($_page-1)) == 0 and ($_db_len - ($_page-1) * $_pagecount) > $_pagecount}>
				<a href="default.php?page=<{$_page+1}><{$_qs}>">下一页</a>
			<{else}>
				下一页
			<{/if}>
		<{/if}>
	<{/if}>
<{/if}>
</li>
</ul>
</div>